// ------------MAIN------------------------------------------------------------>
.main {
	background-color: #2e2e2e;
	color: rgb(250, 250, 250);
}

// ------------GREETING------------------------------------------------------------>
.greeting {
	background: url(../pictures/background_greeting.jpg);
	height: 100vh;
	background-attachment: fixed;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	width: 100%;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	background-color: #1d1d1d;
	padding-top: 56px;
	padding-bottom: 56px;
	color: #fff;
	text-align: center;
}

.greeting__container {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.my-name {
	font-weight: 700;
	font-size: 18px;
}

.greeting__title {
	font-weight: 800;
	text-transform: uppercase;
	font-size: 32px;
	letter-spacing: 0.1em;
	line-height: 1.5;

	@media (max-width: 480px) {
		font-size: 28px;
	}
}

.greeting__btn-to-header {
	position: absolute;
	border: 1px solid white;
	border-radius: 50%;
	width: 56px;
	height: 56px;
	bottom: 10%;
	background-image: url("../pictures/icons/greeeting/background_btn_greeting.svg");
	background-repeat: no-repeat;
	background-position: center 50%;
	animation: 0.5s scroll-down infinite forwards;

	@media (max-height: 480px) {
		bottom: 5%;
	}
}

.greeting__btn-to-header:hover {
	border: 1px solid #0075ff;
	background-color: rgba($color: #000000, $alpha: 0)
}

// ------------AUTHOR------------------------------------------------------------>
.author {
	font-weight: 400;
	line-height: 2;
}

.author__container {
	margin: 0 auto;
	padding: 86px 15px;
}

.author__head {
	:not(:last-child) {
		margin-bottom: 30px;
	}
}

.author__advantages {
	padding: 50px 0px 30px 0px;
}

.advantages__list {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 5%;

	@media (max-width: 941px) {
		padding: 0px 15px;
	}
}

.advantages__item {
	min-height: 200px;
	width: calc(90% / 3);
	padding: 5px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	margin-bottom: 15px;
	-webkit-box-shadow: 0px 2px 2px 0px rgba(34, 60, 80, 0.2);
	-moz-box-shadow: 0px 2px 2px 0px rgba(34, 60, 80, 0.2);
	box-shadow: 0px 2px 2px 0px rgba(34, 60, 80, 0.2);
	margin-bottom: 56px;

	@media (max-width: 941px) {
		width: calc(90% / 2);
	}

	@media (max-width: 624px) {
		width: 90%;
	}
}

.advantages__icon {
	width: 60px;
	height: 60px;
	margin-bottom: 20px;
}

// ------------PORTFOLIO------------------------------------------------------------>
.main__portfolio {
	background-color: rgb(53, 53, 53);
	padding: 70px 0px;
}

.portfolio__title {
	margin-bottom: 40px;
}

.portfolio__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 5%;
}

.portfolio__item {
	width: calc(90% / 2);
	margin-bottom: 50px;
	border-bottom: black 3px solid;
	border-radius: 25px;

	@media (max-width: 675px) {
		width: 90%;
	}
}

.portfolio__link {
	color: inherit;
}

.portfolio__link:hover {
	color: #0075FF;

	.portfolio__image-wrapper::before {
		opacity: 1;
	}

	.portfolio__image-wrapper:after {
		opacity: 1;
		color: white;
		top: 50%;
	}
}

.portfolio__image-wrapper {
	margin-bottom: 15px;
	position: relative;
}

.portfolio__image-wrapper::before {
	content: "";
	background-color: rgba(255, 255, 255, 0.5);
	height: 100%;
	width: 100%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	display: block;
	opacity: 0;
	transition: all 0.3s ease;
}

.portfolio__image-wrapper::after {
	content: "Перейти";
	position: absolute;
	top: 30%;
	left: 50%;
	color: inherit;
	background-color: #0075FF;
	padding: 20px 50px;
	border-radius: 40px;
	transform: translate(-50%, -50%);
	z-index: 2;
	display: block;
	opacity: 0;
	transition: all 0.5s ease;
}

.portfolio__image {
	max-width: 100%;
	display: block;
	margin: 0 auto;
	z-index: 0;
}

.item__title {
	line-height: 2;
	font-weight: 700;
	transition: all 0.3s ease;
}

// ------------CONTACT------------------------------------------------------------>
.main__contact {
	background-color: black;
	color: rgb(241, 241, 241);
}

.contact__container {
	max-width: 702px;
}

.contact__title {
	padding-top: 78px;
}

.contact__text {
	font-size: 14px;
	padding-top: 54px;
	line-height: 1.5rem;
	font-weight: 400;
	letter-spacing: .1em;
}


.contact__form {
	padding: 54px 0px;

	:not(:last-child) {
		margin-bottom: 25px;
	}
}

.form__group {
	position: relative;
}

.form__label {
	position: absolute;
	top: 0px;
	left: 0px;
	opacity: 0;
	letter-spacing: .1em;
}

.form__input {
	background-color: black;
	color: inherit;
	border: 1px solid white;
	padding: 10px 15px;
	min-width: 100%;
	transition: all 0.5s ease;
	letter-spacing: .1em;
	font-weight: 400;
}

.form__input:focus,
.form__input:active {
	border: 1px solid #0075FF;
}

.form__input:focus+.form__label,
.form__textarea:focus+.form__label {
	opacity: 1;
	transition: all 0.5s ease;
	top: -20px;
}

// ------------HIDE_PLACEHOLDER------------------------------------------------------------>
.form__input:focus::-webkit-input-placeholder {
	color: transparent
}

.form__input:focus::-moz-placeholder {
	color: transparent
}

.form__input:focus:-moz-placeholder {
	color: transparent
}

.form__input:focus:-ms-input-placeholder {
	color: transparent
}

.form__textarea:focus::-webkit-input-placeholder {
	color: transparent
}

.form__textarea:focus::-moz-placeholder {
	color: transparent
}

.form__textarea:focus:-moz-placeholder {
	color: transparent
}

.form__textarea:focus:-ms-input-placeholder {
	color: transparent
}

// ------------------------------------------------------------------------>

.form__textarea {
	height: 150px;
}

.form__privacy-policy {
	font-size: 14px;
	line-height: 1.5rem;
	font-weight: 400;
	letter-spacing: .1em;
}

.privacy-policy-link {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: #0075FF !important;
	transition: all 0.3s ease;
}

.privacy-policy-link:hover,
.privacy-policy-link:focus {
	color: #0075FF;
	background-color: rgba($color: #000000, $alpha: 0);
	text-decoration-color: #0075FF;
	text-decoration: none;
	transition: all 0.3s ease;
}

.form__button {
	color: #0075FF;
}

.form__button:focus,
.form__button:hover {
	color: black;
}

.contact__alternative-contact {
	padding-bottom: 76px;
}

.alternative-contact__text {
	padding-bottom: 36px;
	font-size: 14px;
	line-height: 1.5rem;
	font-weight: 400;
	letter-spacing: .1em;
}

.alternative-contact__links-list {
	display: flex;
	justify-content: center;
	gap: 10%;
}

.links-list__link {
	display: block;
	height: 36px;
	width: 36px;
	background-color: white;
	mask-repeat: no-repeat;
	mask-size: cover;
	transition: all 0.3s ease;
}

.links-list__link:hover {
	background-color: #0075FF;
	transition: all 0.3s ease;
}

.link-1 {
	mask-image: url("../pictures/icons/contact/skype.svg");
}

.link-2 {
	mask-image: url("../pictures/icons/contact/email.svg");
}

.link-3 {
	mask-image: url("../pictures/icons/contact/telegram.svg");
}

.link-4 {
	mask-image: url("../pictures/icons/contact/whatsapp.svg");
}